package io.kiki.task.client.job.core.client;

import io.kiki.task.client.common.annotation.Path;
import io.kiki.task.client.model.request.DispatchJobResultRequest;
import io.kiki.task.client.model.request.MapTaskRequest;
import io.kiki.task.common.core.constant.SystemConstants.HTTP_PATH;
import io.kiki.task.common.core.model.Result;

/**
 * netty 客户端请求类
 */
public interface JobNettyClient {

    @Path(value = HTTP_PATH.REPORT_JOB_DISPATCH_RESULT)
    Result dispatchResult(DispatchJobResultRequest request);

    @Path(value = HTTP_PATH.BATCH_REPORT_JOB_MAP_TASK)
    Result<Boolean> batchReportMapTask(MapTaskRequest mapTaskRequest);
}
